<template>
    <div id="app">
     <router-view/>
      <!--$route当前路有-->
      <FooterGuide v-show="$route.meta.showFoooter"/>
    </div>
</template>

<script>
  import {mapActions} from 'vuex'
  import FooterGuide from  './components/FooterGuide/FooterGuide.vue'
  import {reqFoodCategorys} from './api'
  export default {
     mounted(){
        //this.$store.dispatch('getAddress')
       this.getAddress()
    },
    methods:{
      ...mapActions(['getAddress'])
    },
    components:{
      FooterGuide
    }
  }
</script>

<style lang="stylus" rel="stylesheet/stylus">
  #app
    width: 100%;
    height: 100%;
    background: #f5f5f5;
</style>
